<p>&nbsp;</p>
<?php if (count($user) > 0 && isset($user[0])) { ?>
<table width="100%">
    <tr>
        <th>UID</th>
        <th>price</th>
        <th>Date Request</th>
        <th>Date Transferred</th>
        <th width="120">Action</th>
    </tr>
    <?php
        foreach ($user as $value) {
            ?>
            <tr>
                <td><?php echo $value['recipient'] ?></td>
                <td><?php echo $value['commission']; ?></td>
                <td><?php echo $value['date_cashout_request'] ?></td>
                <td><?php echo $value['date_cashout_approved'] ?></td>
                <td><?php 
                		if($value['status'] == 1){
                			echo anchor(base_url() . 'admin/cashout/approve/' . $value['recipient'] . '~' . $value['date_cashout_request'], 'Approve', array('title' => 'Approve as User.'));}
                		else {
                			echo "Transferred";} ?>
                </td>
            </tr>
            <?php
        }
    ?>
</table>
<div>
	<?php echo $paging; ?>
</div>
<?php } else { ?>
Belum ada request cashout
<?php } ?>
<p>&nbsp;</p>